package com.zhx.basis.设计模式.观察者模式.demo1.listen;

import com.zhx.basis.设计模式.观察者模式.demo1.LotteryResult;

public class MQEventListener implements EventListener {

    @Override
    public void doEvent(LotteryResult result) {
        System.out.println(String.format("记录用户 {%s} 摇号结果(MQ)：{%s}",result.getUid(), result.getLottery()));
    }

}